package cn.hwadee.muying.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import cn.hwadee.muying.commons.base.BaseModel;

/**
 * <p>
 * 员工等级
 * </p>
 *
 * @author Carlos
 * @since 2018-08-07
 */
@TableName("worker_level")
public class WorkerLevel extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 所属职位
     */
    @TableField("job_id")
    private Long jobId;
    /**
     * 等级名称
     */
        
    private String name;
    /**
     * 下一等级id
     */
    @TableField("next_id")
        
    private Long nextId;
    /**
     * 工作经验(月)
     */
    @TableField("needed_time")
        
    private Long neededTime;
    /**
     * 是否有下一等级
     */
    @TableField("has_next")
        
    private Boolean hasNext;

    @TableField(exist = false)
    private String JobName;

    @TableField(exist = false)
    private String nextLevelName;

    public String getJobName() {
        return JobName;
    }

    public void setJobName(String jobName) {
        JobName = jobName;
    }

    public String getNextLevelName() {
        return nextLevelName;
    }

    public void setNextLevelName(String nextLevelName) {
        this.nextLevelName = nextLevelName;
    }

    public Long getJobId() {
        return jobId;
    }

    public void setJobId(Long jobId) {
        this.jobId = jobId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getNextId() {
        return nextId;
    }

    public void setNextId(Long nextId) {
        this.nextId = nextId;
    }

    public Long getNeededTime() {
        return neededTime;
    }

    public void setNeededTime(Long neededTime) {
        this.neededTime = neededTime;
    }

    public Boolean getHasNext() {
        return hasNext;
    }

    public void setHasNext(Boolean hasNext) {
        this.hasNext = hasNext;
    }

    public static final String JOB_ID = "job_id";

    public static final String NAME = "name";

    public static final String NEXT_ID = "next_id";

    public static final String NEEDED_TIME = "needed_time";

    public static final String HAS_NEXT = "has_next";

    @Override
    public String toString() {
        return "WorkerLevel{" +
                ", jobId=" + jobId +
                ", name=" + name +
                ", nextId=" + nextId +
                ", neededTime=" + neededTime +
                ", hasNext=" + hasNext +
        "}";
    }
}
